package Gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import java.awt.Rectangle;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;

public class DialogSzczegolyPodsumowania extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel jLabel = null;
	private JLabel jLabel1 = null;
	private JLabel jLabel2 = null;
	private JLabel jLabel3 = null;
	private JLabel jLabel31 = null;
	private JLabel jLabel311 = null;
	private JTextArea txtKwalifikator = null;
	private JTextArea txtSumaryzator = null;
	private JLabel lblIloscKwalifikatorow = null;
	private JLabel lblIloscSumaryzatorow = null;
	private JLabel lblKwantyfikator = null;
	private JLabel lblAbsolutny = null;
	private JLabel jLabel4 = null;
	private JLabel lblT1 = null;
	private JLabel jLabel6 = null;
	private JLabel jLabel41 = null;
	private JLabel lblT2 = null;
	private JLabel lblT3 = null;
	private JLabel lblT5 = null;
	private JLabel jLabel54 = null;
	private JLabel jLabel55 = null;
	private JLabel lblT4 = null;
	private JLabel lblT7 = null;
	private JLabel jLabel58 = null;
	private JLabel jLabel59 = null;
	private JLabel jLabel510 = null;
	private JLabel jLabel511 = null;
	private JLabel jLabel512 = null;
	private JLabel lblT8 = null;
	private JLabel lblT6 = null;
	private JLabel lblT11 = null;
	private JLabel jLabel516 = null;
	private JLabel jLabel517 = null;
	private JLabel lblT10 = null;
	private JLabel lblT9 = null;
	private JLabel jLabel541 = null;
	private JLabel lblT0 = null;
	/**
	 * This is the default constructor
	 */
	public DialogSzczegolyPodsumowania() {
		super();
		initialize();
	}
	
	public void ustawTekstKwantyfikatora(String tekst){
		lblKwantyfikator.setText(tekst);
	}
	public void ustawTekstKwalifikatora(String tekst){
		txtKwalifikator.setText(tekst);
	}
	public void ustawTekstSumaryzatora(String tekst){
		txtSumaryzator.setText(tekst);
	}
	public void ustawTypKwantyfikatora(boolean typ){
		if(typ){
			lblAbsolutny.setText("TAK");
		}else {
			lblAbsolutny.setText("NIE");
		}
	}
	public void ustawIloscKwalifikatorow(int ilosc){
		lblIloscKwalifikatorow.setText(""+ilosc);
	}
	public void ustawIloscSumaryzatorow(int ilosc){
		lblIloscSumaryzatorow.setText(""+ilosc);
	}
	public void ustawMiary(float[] miary){
		lblT0.setText(""+miary[0]);
		lblT1.setText(""+miary[1]);
		lblT2.setText(""+miary[2]);
		lblT3.setText(""+miary[3]);
		lblT4.setText(""+miary[4]);
		lblT5.setText(""+miary[5]);
		lblT6.setText(""+miary[6]);
		lblT7.setText(""+miary[7]);
		lblT8.setText(""+miary[8]);
		lblT9.setText(""+miary[9]);
		lblT10.setText(""+miary[10]);
		lblT11.setText(""+miary[11]);
		
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(449, 353);
		this.setResizable(false);
		this.setContentPane(getJContentPane());
		this.setTitle("Szczegoly podsumowania");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			lblT0 = new JLabel();
			lblT0.setBounds(new Rectangle(6, 258, 66, 16));
			lblT0.setPreferredSize(new Dimension(66, 16));
			lblT0.setHorizontalAlignment(SwingConstants.LEFT);
			lblT0.setText("0");
			lblT0.setForeground(new Color(0, 0, 51));
			lblT0.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel541 = new JLabel();
			jLabel541.setBounds(new Rectangle(6, 240, 66, 16));
			jLabel541.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel541.setText("T0");
			jLabel541.setPreferredSize(new Dimension(66, 16));
			lblT9 = new JLabel();
			lblT9.setPreferredSize(new Dimension(66, 16));
			lblT9.setLocation(new Point(222, 300));
			lblT9.setSize(new Dimension(67, 16));
			lblT9.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT9.setHorizontalAlignment(SwingConstants.LEFT);
			lblT9.setForeground(new Color(0, 0, 51));
			lblT9.setText("0");
			lblT10 = new JLabel();
			lblT10.setPreferredSize(new Dimension(66, 16));
			lblT10.setLocation(new Point(294, 300));
			lblT10.setSize(new Dimension(67, 16));
			lblT10.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT10.setHorizontalAlignment(SwingConstants.LEFT);
			lblT10.setForeground(new Color(0, 0, 51));
			lblT10.setText("0");
			jLabel517 = new JLabel();
			jLabel517.setPreferredSize(new Dimension(66, 16));
			jLabel517.setLocation(new Point(366, 282));
			jLabel517.setSize(new Dimension(67, 16));
			jLabel517.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel517.setText("T11");
			jLabel516 = new JLabel();
			jLabel516.setPreferredSize(new Dimension(66, 16));
			jLabel516.setLocation(new Point(78, 282));
			jLabel516.setSize(new Dimension(67, 16));
			jLabel516.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel516.setText("T7");
			lblT11 = new JLabel();
			lblT11.setPreferredSize(new Dimension(66, 16));
			lblT11.setLocation(new Point(366, 300));
			lblT11.setSize(new Dimension(67, 16));
			lblT11.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT11.setHorizontalAlignment(SwingConstants.LEFT);
			lblT11.setForeground(new Color(0, 0, 51));
			lblT11.setText("0");
			lblT6 = new JLabel();
			lblT6.setPreferredSize(new Dimension(66, 16));
			lblT6.setLocation(new Point(6, 300));
			lblT6.setSize(new Dimension(67, 16));
			lblT6.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT6.setHorizontalAlignment(SwingConstants.LEFT);
			lblT6.setForeground(new Color(0, 0, 51));
			lblT6.setText("0");
			lblT8 = new JLabel();
			lblT8.setPreferredSize(new Dimension(66, 16));
			lblT8.setLocation(new Point(150, 300));
			lblT8.setSize(new Dimension(67, 16));
			lblT8.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT8.setHorizontalAlignment(SwingConstants.LEFT);
			lblT8.setForeground(new Color(0, 0, 51));
			lblT8.setText("0");
			jLabel512 = new JLabel();
			jLabel512.setPreferredSize(new Dimension(66, 16));
			jLabel512.setLocation(new Point(222, 240));
			jLabel512.setSize(new Dimension(67, 16));
			jLabel512.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel512.setText("T3");
			jLabel511 = new JLabel();
			jLabel511.setPreferredSize(new Dimension(66, 16));
			jLabel511.setLocation(new Point(150, 282));
			jLabel511.setSize(new Dimension(67, 16));
			jLabel511.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel511.setText("T8");
			jLabel510 = new JLabel();
			jLabel510.setPreferredSize(new Dimension(66, 16));
			jLabel510.setLocation(new Point(366, 240));
			jLabel510.setSize(new Dimension(67, 16));
			jLabel510.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel510.setText("T5");
			jLabel59 = new JLabel();
			jLabel59.setPreferredSize(new Dimension(66, 16));
			jLabel59.setLocation(new Point(222, 282));
			jLabel59.setSize(new Dimension(67, 16));
			jLabel59.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel59.setText("T9");
			jLabel58 = new JLabel();
			jLabel58.setPreferredSize(new Dimension(66, 16));
			jLabel58.setLocation(new Point(294, 282));
			jLabel58.setSize(new Dimension(67, 16));
			jLabel58.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel58.setText("T10");
			lblT7 = new JLabel();
			lblT7.setPreferredSize(new Dimension(66, 16));
			lblT7.setLocation(new Point(78, 300));
			lblT7.setSize(new Dimension(67, 16));
			lblT7.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT7.setHorizontalAlignment(SwingConstants.LEFT);
			lblT7.setForeground(new Color(0, 0, 51));
			lblT7.setText("0");
			lblT4 = new JLabel();
			lblT4.setPreferredSize(new Dimension(66, 16));
			lblT4.setLocation(new Point(294, 258));
			lblT4.setSize(new Dimension(67, 16));
			lblT4.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT4.setHorizontalAlignment(SwingConstants.LEFT);
			lblT4.setForeground(new Color(0, 0, 51));
			lblT4.setText("0");
			jLabel55 = new JLabel();
			jLabel55.setPreferredSize(new Dimension(66, 16));
			jLabel55.setLocation(new Point(294, 240));
			jLabel55.setSize(new Dimension(67, 16));
			jLabel55.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel55.setText("T4");
			jLabel54 = new JLabel();
			jLabel54.setPreferredSize(new Dimension(66, 16));
			jLabel54.setLocation(new Point(6, 282));
			jLabel54.setSize(new Dimension(67, 16));
			jLabel54.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel54.setText("T6");
			lblT5 = new JLabel();
			lblT5.setPreferredSize(new Dimension(66, 16));
			lblT5.setLocation(new Point(366, 258));
			lblT5.setSize(new Dimension(67, 16));
			lblT5.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT5.setHorizontalAlignment(SwingConstants.LEFT);
			lblT5.setForeground(new Color(0, 0, 51));
			lblT5.setText("0");
			lblT3 = new JLabel();
			lblT3.setPreferredSize(new Dimension(66, 16));
			lblT3.setLocation(new Point(222, 258));
			lblT3.setSize(new Dimension(67, 16));
			lblT3.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT3.setHorizontalAlignment(SwingConstants.LEFT);
			lblT3.setForeground(new Color(0, 0, 51));
			lblT3.setText("0");
			lblT2 = new JLabel();
			lblT2.setPreferredSize(new Dimension(66, 16));
			lblT2.setLocation(new Point(150, 258));
			lblT2.setSize(new Dimension(67, 16));
			lblT2.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT2.setHorizontalAlignment(SwingConstants.LEFT);
			lblT2.setForeground(new Color(0, 0, 51));
			lblT2.setText("0");
			jLabel41 = new JLabel();
			jLabel41.setPreferredSize(new Dimension(66, 16));
			jLabel41.setLocation(new Point(150, 240));
			jLabel41.setSize(new Dimension(67, 16));
			jLabel41.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel41.setText("T2");
			jLabel6 = new JLabel();
			jLabel6.setBounds(new Rectangle(6, 210, 427, 16));
			jLabel6.setText("Miary ______________________________________________________");
			lblT1 = new JLabel();
			lblT1.setBounds(new Rectangle(78, 258, 67, 16));
			lblT1.setPreferredSize(new Dimension(66, 16));
			lblT1.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblT1.setHorizontalAlignment(SwingConstants.LEFT);
			lblT1.setForeground(new Color(0, 0, 51));
			lblT1.setText("0");
			jLabel4 = new JLabel();
			jLabel4.setBounds(new Rectangle(78, 240, 67, 16));
			jLabel4.setPreferredSize(new Dimension(66, 16));
			jLabel4.setHorizontalAlignment(SwingConstants.LEFT);
			jLabel4.setText("T1");
			lblAbsolutny = new JLabel();
			lblAbsolutny.setBounds(new Rectangle(72, 24, 25, 16));
			lblAbsolutny.setForeground(new Color(0, 0, 51));
			lblAbsolutny.setText("TAK");
			lblKwantyfikator = new JLabel();
			lblKwantyfikator.setBounds(new Rectangle(102, 6, 337, 16));
			lblKwantyfikator.setFont(new Font("Dialog", Font.PLAIN, 12));
			lblKwantyfikator.setForeground(new Color(0, 0, 51));
			lblKwantyfikator.setText("Duzo");
			lblIloscSumaryzatorow = new JLabel();
			lblIloscSumaryzatorow.setBounds(new Rectangle(48, 150, 37, 16));
			lblIloscSumaryzatorow.setText("0");
			lblIloscSumaryzatorow.setForeground(new Color(0, 0, 51));
			lblIloscSumaryzatorow.setHorizontalAlignment(SwingConstants.RIGHT);
			lblIloscKwalifikatorow = new JLabel();
			lblIloscKwalifikatorow.setBounds(new Rectangle(48, 66, 37, 16));
			lblIloscKwalifikatorow.setHorizontalAlignment(SwingConstants.RIGHT);
			lblIloscKwalifikatorow.setForeground(new Color(0, 0, 51));
			lblIloscKwalifikatorow.setText("0");
			jLabel311 = new JLabel();
			jLabel311.setBounds(new Rectangle(6, 150, 37, 16));
			jLabel311.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel311.setText("Ilosc: ");
			jLabel31 = new JLabel();
			jLabel31.setBounds(new Rectangle(6, 66, 37, 16));
			jLabel31.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel31.setText("Ilosc: ");
			jLabel3 = new JLabel();
			jLabel3.setText("Absolutny: ");
			jLabel3.setSize(new Dimension(64, 16));
			jLabel3.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel3.setLocation(new Point(6, 24));
			jLabel2 = new JLabel();
			jLabel2.setBounds(new Rectangle(6, 132, 91, 16));
			jLabel2.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel2.setText("Sumaryzator: ");
			jLabel1 = new JLabel();
			jLabel1.setBounds(new Rectangle(6, 48, 91, 16));
			jLabel1.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel1.setText("Kwalifikator: ");
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(6, 6, 91, 16));
			jLabel.setFont(new Font("Dialog", Font.PLAIN, 12));
			jLabel.setText("Kwantyfikator: ");
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.setBackground(Color.white);
			jContentPane.add(jLabel6, null);
			jContentPane.add(jLabel, null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(jLabel2, null);
			jContentPane.add(jLabel3, null);
			jContentPane.add(jLabel31, null);
			jContentPane.add(jLabel311, null);
			jContentPane.add(getTxtKwalifikator(), null);
			jContentPane.add(getTxtSumaryzator(), null);
			jContentPane.add(lblIloscKwalifikatorow, null);
			jContentPane.add(lblIloscSumaryzatorow, null);
			jContentPane.add(lblKwantyfikator, null);
			jContentPane.add(lblAbsolutny, null);
			jContentPane.add(jLabel4, null);
			jContentPane.add(lblT1, null);
			jContentPane.add(jLabel41, null);
			jContentPane.add(lblT2, null);
			jContentPane.add(lblT3, null);
			jContentPane.add(lblT5, null);
			jContentPane.add(jLabel54, null);
			jContentPane.add(jLabel55, null);
			jContentPane.add(lblT4, null);
			jContentPane.add(lblT7, null);
			jContentPane.add(jLabel58, null);
			jContentPane.add(jLabel59, null);
			jContentPane.add(jLabel510, null);
			jContentPane.add(jLabel511, null);
			jContentPane.add(jLabel512, null);
			jContentPane.add(lblT8, null);
			jContentPane.add(lblT6, null);
			jContentPane.add(lblT11, null);
			jContentPane.add(jLabel516, null);
			jContentPane.add(jLabel517, null);
			jContentPane.add(lblT10, null);
			jContentPane.add(lblT9, null);
			jContentPane.add(jLabel541, null);
			jContentPane.add(lblT0, null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes txtKwalifikator	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getTxtKwalifikator() {
		if (txtKwalifikator == null) {
			txtKwalifikator = new JTextArea();
			txtKwalifikator.setBounds(new Rectangle(102, 48, 337, 73));
			txtKwalifikator.setLineWrap(true);
			txtKwalifikator.setWrapStyleWord(true);
			txtKwalifikator.setFont(new Font("Dialog", Font.PLAIN, 12));
			txtKwalifikator.setForeground(new Color(0, 0, 51));
			txtKwalifikator.setText("1 AND 2 AND 3 OR 4");
			txtKwalifikator.setEditable(false);
		}
		return txtKwalifikator;
	}

	/**
	 * This method initializes txtSumaryzator	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getTxtSumaryzator() {
		if (txtSumaryzator == null) {
			txtSumaryzator = new JTextArea();
			txtSumaryzator.setBounds(new Rectangle(102, 132, 331, 73));
			txtSumaryzator.setLineWrap(true);
			txtSumaryzator.setWrapStyleWord(true);
			txtSumaryzator.setFont(new Font("Dialog", Font.PLAIN, 12));
			txtSumaryzator.setForeground(new Color(0, 0, 51));
			txtSumaryzator.setText("1 AND 2 AND 3 OR 4");
			txtSumaryzator.setEditable(false);
		}
		return txtSumaryzator;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
